echo nodejs.bat start...
@echo off

set modRoot=%cd%

rem 删除旧文件
echo remove old files
cd src/main/assets
rd tmp /s /q

rem 复制新文件
echo copy file
mkdir tmp
xcopy /s www tmp

rem 进行加密
rem 注意等号(=)左右不要留空格
echo encrypt file
cd %modRoot%
set password=123456
set relativePath=src/main/assets/tmp
java -jar foss.jar %password% %relativePath%

echo nodejs.bat done...
pause